package cn.funeralobjects.ams.entity;

import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;

/**
 * @author FuneralObjects
 * Create date: 2020/6/7 12:04 PM
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "t_ram_role_info")
public class ERamRoleInfo {
    @Id
    private Integer ramRoleId;
    private String roleId;
    private String roleName;
    private String arn;
    private String assumeRolePolicyDocument;
    private String description;
    private Long maxSessionDuration;
    private String createDate;
    private String updateDate;

    @OneToOne
    @PrimaryKeyJoinColumn(name = "ram_role_id")
    private ERamRole ramRole;
}
